package com.cyz.web.app.decorator;

public class Client {


    public static void main(String[] args) {

        FastFood  food = new FriedRice();


        System.out.println(food.getDesc() + "  " + food.cost() + "元");


        food = new Egg(food);

        System.out.println(food.getDesc() + "  " + food.cost()+ "元");

        food = new Bacon(food);

        System.out.println(food.getDesc() + "  " + food.cost()+ "元");


    }

}
